#include "uhd_thread.h"

uhd_io_thread::uhd_io_thread (std::function<void (void)> runner,QObject * p)
    :QThread(p)
    ,m_runner(runner)

{

}
uhd_io_thread::uhd_io_thread (QObject * p)
    :QThread(p)

{

}

// 定义一个名为uhd_io_thread的类中的run函数
void uhd_io_thread::run()
{
    // 如果m_runner存在，则调用m_runner函数
    if (m_runner)
        m_runner();
}
